#ifndef __UNISTD_GETCWD_H__
#define __UNISTD_GETCWD_H__

#include <types.h>

/**
 *  getcwd()
 *  vrati retezec s aktualni slozkou
 *  IN:   <cwd>             - cilovy string
 *  OUT:  <cwd>
 */
char *getcwd(char *dir) {
  char *result;
  int r_bp;

  asm push bp;
  asm pop r_bp;

  asm mov ax, 0x22;
  asm mov bx, r_bp;
  asm int OSINT;

  return result;
}

#endif
